export default {
  mdctrlActiveMode: 2,
  xdataControlName: 'gantt',
  loadDefault: true,
  deviewCodeName: 'gantt_contextmenu',
  deviewId: 'dd5ae7b35d066279cc697c88d38b9207',
  appWFId: 'workflow',
  accUserMode: 3,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.MASTER',
  },
  caption: '甘特图_上下文菜单',
  codeName: 'master_gantt_contextmenu',
  appDataEntityId: 'web.master',
  appViewMsgGroupId: 'gantt_contextmenu',
  controls: [
    {
      beginDataItemName: 'begin',
      endDataItemName: 'end',
      finishDataItemName: 'finish',
      prevDataItemName: 'prev',
      sndataItemName: 'sn',
      totalDataItemName: 'total',
      detreeColumns: [
        {
          caption: '编号',
          codeName: 'sn',
          columnType: 'DEFGRIDCOLUMN',
          width: 120,
          widthUnit: 'px',
          id: 'sn',
        },
        {
          caption: '标题',
          codeName: 'name',
          columnType: 'DEFGRIDCOLUMN',
          width: 200,
          widthUnit: 'px',
          id: 'name',
        },
        {
          caption: '开始时间',
          codeName: 'begin',
          columnType: 'DEFGRIDCOLUMN',
          width: 200,
          widthUnit: 'px',
          id: 'begin',
        },
        {
          caption: '结束时间',
          codeName: 'end',
          columnType: 'DEFGRIDCOLUMN',
          width: 200,
          widthUnit: 'px',
          id: 'end',
        },
      ],
      detreeNodeRSs: [
        {
          childDETreeNodeId: 'node',
          parentDETreeNodeId: 'root',
          parentValueLevel: 1,
          searchMode: 3,
          id: 'null - null',
        },
      ],
      detreeNodes: [
        {
          text: '默认根节点',
          nodeType: 'ROOT',
          treeNodeType: 'STATIC',
          hasDETreeNodeRSs: true,
          rootNode: true,
          name: '默认根节点',
          id: 'root',
        },
        {
          dataSourceType: 'DEDATASET',
          idAppDEFieldId: 'id',
          appDEDataSetId: 'fetch_default',
          textAppDEFieldId: 'name',
          nodeType: 'node',
          appDataEntityId: 'web.master',
          decontextMenu: {
            detoolbarItems: [
              {
                actionLevel: 100,
                noPrivDisplayMode: 2,
                uiactionId: 'gridview_newaction',
                valid: true,
                capLanguageRes: {
                  lanResTag: 'TBB.TEXT.*.NEW',
                },
                caption: '新建',
                itemType: 'DEUIACTION',
                sysImage: {
                  cssClass: 'fa fa-file-text-o',
                  glyph: 'xf0f6@FontAwesome',
                },
                tooltip: '新建',
                tooltipLanguageRes: {
                  lanResTag: 'TBB.TOOLTIP.*.NEW',
                },
                showCaption: true,
                showIcon: true,
                id: 'deuiaction1',
              },
              {
                actionLevel: 100,
                noPrivDisplayMode: 2,
                uiactionId: 'gridview_editaction',
                uiactionTarget: 'SINGLEKEY',
                valid: true,
                capLanguageRes: {
                  lanResTag: 'TBB.TEXT.*.EDIT',
                },
                caption: '编辑',
                itemType: 'DEUIACTION',
                sysImage: {
                  cssClass: 'fa fa-edit',
                  glyph: 'xf044@FontAwesome',
                },
                tooltip: '编辑',
                tooltipLanguageRes: {
                  lanResTag: 'TBB.TOOLTIP.*.EDIT',
                },
                showCaption: true,
                showIcon: true,
                id: 'deuiaction2',
              },
              {
                actionLevel: 100,
                noPrivDisplayMode: 2,
                uiactionId: 'gridview_removeaction',
                uiactionTarget: 'MULTIKEY',
                valid: true,
                capLanguageRes: {
                  lanResTag: 'TBB.TEXT.*.REMOVE',
                },
                caption: '删除',
                itemType: 'DEUIACTION',
                sysImage: {
                  cssClass: 'fa fa-remove',
                  glyph: 'xf00d@FontAwesome',
                },
                tooltip: '删除',
                tooltipLanguageRes: {
                  lanResTag: 'TBB.TOOLTIP.*.REMOVE',
                },
                showCaption: true,
                showIcon: true,
                id: 'deuiaction3',
              },
            ],
            codeName: 'gantt_contextmenu_node_cm',
            controlType: 'CONTEXTMENU',
            logicName: '甘特图_上下文菜单',
            appDataEntityId: 'web.master',
            controlParam: {
              id: 'node_cm',
            },
            modelId: '8135f7be21c75702a885c52908c870e5',
            modelType: 'PSDETOOLBAR',
            name: 'node_cm',
            id: 'gantt_contextmenu_node_cm',
          },
          detreeNodeColumns: [
            {
              clconvertMode: 'NONE',
              dataItemName: 'end_time',
              appDEFieldId: 'end_time',
              valueFormat: 'YYYY-MM-DD',
              valueType: 'SIMPLE',
              codeName: 'end_time',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              detreeColumnId: 'end',
              id: 'end_time',
            },
            {
              clconvertMode: 'NONE',
              dataItemName: 'id',
              appDEFieldId: 'id',
              valueType: 'SIMPLE',
              codeName: 'id',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              detreeColumnId: 'sn',
              id: 'id',
            },
            {
              clconvertMode: 'NONE',
              dataItemName: 'name',
              appDEFieldId: 'name',
              valueType: 'SIMPLE',
              codeName: 'name',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              detreeColumnId: 'name',
              id: 'name',
            },
            {
              clconvertMode: 'NONE',
              dataItemName: 'start_time',
              appDEFieldId: 'start_time',
              valueFormat: 'YYYY-MM-DD',
              valueType: 'SIMPLE',
              codeName: 'start_time',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              detreeColumnId: 'begin',
              id: 'start_time',
            },
          ],
          detreeNodeDataItems: [
            {
              clconvertMode: 'NONE',
              appDEFieldId: 'end_time',
              detreeColumnId: 'end',
              valueType: 'SIMPLE',
              dataType: 5,
              format: 'YYYY-MM-DD',
              id: 'end_time',
            },
            {
              clconvertMode: 'NONE',
              appDEFieldId: 'id',
              detreeColumnId: 'sn',
              valueType: 'SIMPLE',
              dataType: 25,
              id: 'id',
            },
            {
              clconvertMode: 'NONE',
              appDEFieldId: 'name',
              detreeColumnId: 'name',
              valueType: 'SIMPLE',
              dataType: 25,
              id: 'name',
            },
            {
              clconvertMode: 'NONE',
              appDEFieldId: 'start_time',
              detreeColumnId: 'begin',
              valueType: 'SIMPLE',
              dataType: 5,
              format: 'YYYY-MM-DD',
              id: 'start_time',
            },
          ],
          detreeNodeRVs: [
            {
              refAppViewId: 'web.master_edit_view',
              id: 'newdata',
            },
            {
              refAppViewId: 'web.master_edit_view',
              id: 'editdata',
            },
          ],
          treeNodeType: 'DE',
          enableEditData: true,
          enableNewData: true,
          enableRemoveData: true,
          enableViewData: true,
          name: '主数据',
          id: 'node',
        },
      ],
      treeGridMode: 2,
      outputIconDefault: true,
      navViewPos: 'NONE',
      autoLoad: true,
      showBusyIndicator: true,
      appViewLogics: [
        {
          logicTrigger: 'CUSTOM',
          logicType: 'APPUILOGIC',
          builtinAppUILogic: {
            actionAfterWizard: 'DEFAULT',
            newDataAppView: {
              openMode: 'POPUPMODAL',
              refAppViewId: 'web.master_edit_view',
            },
            appUILogicRefViews: [
              {
                openMode: 'POPUPMODAL',
                refAppViewId: 'web.master_edit_view',
              },
            ],
            builtinLogic: true,
            logicType: 'PREDEFINED',
            viewLogicType: 'APP_NEWDATA',
            id: '新建数据',
          },
          builtinLogic: true,
          id: 'node_newdata',
        },
        {
          logicTrigger: 'CUSTOM',
          logicType: 'APPUILOGIC',
          builtinAppUILogic: {
            openDataAppView: {
              openMode: 'POPUPMODAL',
              refAppViewId: 'web.master_edit_view',
            },
            editMode: true,
            appUILogicRefViews: [
              {
                openMode: 'POPUPMODAL',
                refAppViewId: 'web.master_edit_view',
              },
            ],
            builtinLogic: true,
            logicType: 'PREDEFINED',
            viewLogicType: 'APP_OPENDATA',
            id: '打开数据',
          },
          builtinLogic: true,
          id: 'node_opendata',
        },
      ],
      controls: [
        {
          detoolbarItems: [
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'gridview_newaction',
              valid: true,
              capLanguageRes: {
                lanResTag: 'TBB.TEXT.*.NEW',
              },
              caption: '新建',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-file-text-o',
                glyph: 'xf0f6@FontAwesome',
              },
              tooltip: '新建',
              tooltipLanguageRes: {
                lanResTag: 'TBB.TOOLTIP.*.NEW',
              },
              showCaption: true,
              showIcon: true,
              id: 'deuiaction1',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'gridview_editaction',
              uiactionTarget: 'SINGLEKEY',
              valid: true,
              capLanguageRes: {
                lanResTag: 'TBB.TEXT.*.EDIT',
              },
              caption: '编辑',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-edit',
                glyph: 'xf044@FontAwesome',
              },
              tooltip: '编辑',
              tooltipLanguageRes: {
                lanResTag: 'TBB.TOOLTIP.*.EDIT',
              },
              showCaption: true,
              showIcon: true,
              id: 'deuiaction2',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'gridview_removeaction',
              uiactionTarget: 'MULTIKEY',
              valid: true,
              capLanguageRes: {
                lanResTag: 'TBB.TEXT.*.REMOVE',
              },
              caption: '删除',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-remove',
                glyph: 'xf00d@FontAwesome',
              },
              tooltip: '删除',
              tooltipLanguageRes: {
                lanResTag: 'TBB.TOOLTIP.*.REMOVE',
              },
              showCaption: true,
              showIcon: true,
              id: 'deuiaction3',
            },
          ],
          codeName: 'gantt_contextmenu_node_cm',
          controlType: 'CONTEXTMENU',
          logicName: '甘特图_上下文菜单',
          appDataEntityId: 'web.master',
          controlParam: {
            id: 'node_cm',
          },
          modelId: '8135f7be21c75702a885c52908c870e5',
          modelType: 'PSDETOOLBAR',
          name: 'node_cm',
          id: 'gantt_contextmenu_node_cm',
        },
      ],
      codeName: 'gantt_contextmenu_gantt',
      controlType: 'GANTT',
      height: 510,
      logicName: '甘特图_上下文菜单_甘特部件',
      appDataEntityId: 'web.master',
      controlParam: {
        id: 'gantt',
      },
      modelId: 'eff3ca6927231da3b0e879f83ad92781',
      modelType: 'PSDEGANTT',
      name: 'gantt',
      id: 'web.master.gantt_contextmenu_gantt',
    },
    {
      groupMode: 'SINGLE',
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.master',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      capLanguageRes: {
        lanResTag: 'DE.LNAME.MASTER',
      },
      caption: '甘特图_上下文菜单',
      codeName: 'gantt_contextmenu_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.master',
      controlParam: {},
      name: 'captionbar',
      id: 'gantt_contextmenu_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDEGANTTVIEW',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.master',
    controlParam: {},
    id: 'layoutpanel',
  },
  title: '甘特图_上下文菜单',
  viewStyle: 'DEFAULT',
  viewType: 'DEGANTTVIEW',
  enableDP: true,
  showCaptionBar: false,
  modelId: '6f52e61bd2dcf0075b777f41592093b1',
  modelType: 'PSAPPDEVIEW',
  name: 'MASTERgantt_contextmenu',
  id: 'web.master_gantt_contextmenu',
};
